﻿// Copyright (c) 2014 Jonathan Magnan (http://jonathanmagnan.com/).
// All rights reserved (http://zzzproject.com/sqlbulkcopy-extensions/).
// Licensed under MIT License (MIT) (https://zsqlbulkcopy.codeplex.com/license/).
using System.Data.SqlClient;

namespace Z.Net.Extensions
{
    internal partial class SqlBulkOperation
    {
        /// <summary>
        ///     Create the temporary table.
        /// </summary>
        public void CreateTemporaryTable(string sql)
        {
            using (var sqlCommand = new SqlCommand(sql, SqlConnection, SqlTransaction))
            {
                sqlCommand.ExecuteNonQuery();
            }
        }
    }
}